// pages/newsDesc/newsDesc.js
const app = getApp()
var wh = require("../../utils/wh.js");
var WxParse = require('../../wxParse/wxParse.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    article:{}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let that=this;
    let article_id= options.id
    wh.Post("/api/article.index/content",{article_id:article_id},function(res){
      that.setData({article:res});
      WxParse.wxParse('content', 'html', res.content, that);
    })
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})